﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default_edit.aspx.cs" Inherits="EM.admin.content.default_edit" %>

<%@ Register Src="~/Common/Header.ascx" TagName="Header" TagPrefix="uc2" %>
<%@ Register Src="~/Common/PageName.ascx" TagName="PageName" TagPrefix="uc1" %>
<%@ Register Src="~/Common/Footer.ascx" TagName="Footer" TagPrefix="uc4" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="radCln" %>
<%@ Register Assembly="RadEditor.Net2" Namespace="Telerik.WebControls" TagPrefix="radE" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link id="Link1" runat="server" href="~/css/master.css" rel="stylesheet" type="text/css" />
    <link id="Link2" runat="server" href="~/css/buttons.css" rel="stylesheet" type="text/css" />
    <script src="../../js/PopUp.js" language="javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <uc1:PageName id="ucPageName" PAGEID="15" runat="server" Visible="false"></uc1:PageName>
        <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td class="TdMainContent" valign="top">
                    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="TdPageName" colspan="2"><uc1:PageName id="PageName1" PAGEID="15" runat="server" SHOWBOOKMARKBUTTON="false"></uc1:PageName></td>
                        </tr>
                        <tr>
                            <td id="TdMainRight" valign="top" style="width:100%;">
                                <div id="ContentRight">
                                      <radCln:RadCalendar ID="sharedCalendar" runat="server" Skin="Default" RangeMinDate="01/01/2000" ></radCln:RadCalendar>
                                    <div id="GrdDivMaster">
                                      <%--<uc3:SectionName id="Section" PAGESECTIONID="39" PAGEWIDTH="700" runat="server"></uc3:SectionName>--%>
                                        <table class="MasterEditTable" style="width:750px" cellpadding="0" cellspacing="0" >
                                            <tr>
                                                <td style="width:200px"><asp:Label ID="lblCONTENTID" runat="server"></asp:Label>:</td>
                                                <td><asp:Label ID="txtCONTENTID" runat="server"></asp:Label></td>
                                            </tr>
                                            <tr>
                                                <td><asp:Label ID="lblCONTENTNAME" runat="server"></asp:Label>:</td>
                                                <td><asp:TextBox Width="600" CssClass="EditinputRq" ID="txtCONTENTNAME" runat="server" ></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="rfvCONTENTNAME" runat="server" ValidationGroup="vgTab1" ControlToValidate="txtCONTENTNAME" Display="None"></asp:RequiredFieldValidator>                                                    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><asp:Label ID="lblADM_CONTENT_TYPE" runat="server"></asp:Label>:</td>
                                                <td><asp:DropDownList CssClass="EditselectRq" ID="ddlADM_CONTENT_TYPE" AutoPostBack="true" Width="200" runat="server" OnSelectedIndexChanged="ddlADM_CONTENT_TYPE_SelectedIndexChanged"></asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="rfvADM_CONTENT_TYPE" runat="server" ValidationGroup="vgTab1" ControlToValidate="ddlADM_CONTENT_TYPE" Display="None"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><asp:Label ID="lblDESCRIPTION" runat="server"></asp:Label>:</td>
                                                <td class="MasterEditTableEditorTd">
                                                    <asp:TextBox ID="txtDESCRIPTION" runat="server" TextMode="MultiLine" Width="600px" Height="100px" CssClass="Editinput"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><asp:Label ID="lblUNIQUECODE" runat="server"></asp:Label>:</td>
                                                <td><asp:TextBox Width="600" CssClass="Editinput" ID="txtUNIQUECODE" runat="server" ></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><asp:Label ID="lblEMAILSUBJECT" runat="server"></asp:Label>:</td>
                                                <td><asp:TextBox Width="600" CssClass="EditinputRq" ID="txtEMAILSUBJECT" runat="server" ></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="rfvEMAILSUBJECT" runat="server" ValidationGroup="vgTab1" ControlToValidate="txtEMAILSUBJECT" Display="None"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><asp:Label ID="lblLANGCODE" runat="server"></asp:Label>:</td>
                                                <td><asp:DropDownList CssClass="EditselectRq" Enabled="false"  ID="ddlLANGCODE" Width="200" runat="server"></asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="rfvLANGCODE" runat="server" ValidationGroup="vgTab1" ControlToValidate="ddlLANGCODE" Display="None"></asp:RequiredFieldValidator>
                                                </td> 
                                            </tr>
                                            <tr>
                                                <td><asp:Label ID="lblSTARTDATE" runat="server"></asp:Label>:</td>
                                                <td><radCln:RadDatePicker ID="rdpSTARTDATE" runat="server" SharedCalendarID="sharedCalendar" DateInput-DateFormat="dd.MM.yyyy" MaxDate="01/01/2009" MinDate="01/01/2000" Width="95">
                                                        <DateInput skin="masterRQ"></DateInput>
                                                    </radCln:RadDatePicker>                                                  
                                                    <asp:RequiredFieldValidator ID="rfvSTARTDATE" runat="server" ValidationGroup="vgTab1" ControlToValidate="rdpSTARTDATE" Display="None"></asp:RequiredFieldValidator>
                                                </td> 
                                            </tr>
                                            <tr>
                                                <td><asp:Label ID="lblENDDATE" runat="server"></asp:Label>:</td>
                                                <td><radCln:RadDatePicker ID="rdpENDDATE" runat="server" SharedCalendarID="sharedCalendar" DateInput-DateFormat="dd.MM.yyyy" MaxDate="01/01/2009" MinDate="01/01/2000" Width="95">
                                                        <DateInput Skin="master"></DateInput>
                                                    </radCln:RadDatePicker>                                               
                                                </td> 
                                            </tr>
                                            <tr>
                                                <td><asp:Label ID="lblCONTENTDESC" runat="server"></asp:Label>:</td>
                                                <td class="MasterEditTableEditorTd">
                                                        <radE:RadEditor  Skin="Default"  ID="reCONTENTDESC" runat="server" 
                                                                DocumentsPaths="~/UserFiles/" 
                                                                UploadDocumentsPaths="~/UserFiles/"
                                                                ImagesPaths="~/UserFiles/" 
                                                                UploadImagesPaths="~/UserFiles/" 
                                                                ShowSubmitCancelButtons="false"
                                                                DocumentsFilters=".jpg,*.gif,*.jpeg"
                                                                MaxImageSize="10240000"
                                                                ToolbarMode="Default"
                                                                ShowHtmlMode="true"
                                                                ToolsFile="~/Common/ToolsFile.xml"
                                                                AnchorPathToStrip="true"
                                                                ShowPreviewMode="false" 
                                                                Width="400px"
                                                                StripAbsoluteAnchorPaths="false"
                                                                StripAbsoluteImagesPaths="false"
                                                                >
                                                        </radE:RadEditor>
                                                </td>
                                            </tr>
                                        </table>                
                                    </div>
                                    <br />
                                    <div style="width:750px;padding-left:130px; padding-bottom:30px">   
                                        <a style="float:right;" onclick="javascript:window.close();" class="btn_left xp_back" >
                                            <strong class="btn_rigth_xp xp">Kapat</strong>
                                        </a>
                                        <asp:LinkButton ID="btnSave" style="float:right;"  CssClass="btn_left xp_ok" ValidationGroup="vgTab1" runat="server" OnClick="btnSave_Click">
                                            <strong class="btn_rigth_xp xp">
                                                <asp:Label ID="lblSave" runat="server" />
                                            </strong>
                                        </asp:LinkButton>
                                    </div>
                                    <asp:ValidationSummary ValidationGroup="vgTab1" ID="vsTab1" runat="server" DisplayMode="BulletList"  Width="0px" ShowSummary="false" ShowMessageBox="true" />
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        
        <radA:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <radA:AjaxSetting AjaxControlID="ddlADM_CONTENT_TYPE">
                    <UpdatedControls>
                        <radA:AjaxUpdatedControl ControlID="txtEMAILSUBJECT" />
                        <radA:AjaxUpdatedControl ControlID="txtDESCRIPTION" />
                    </UpdatedControls>
                </radA:AjaxSetting>
            </AjaxSettings>
        </radA:RadAjaxManager>
    </form>
</body>
</html>
